package com.neusoft.ysu.npms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者：刘金秋
 * @since 2024-06-18
 */
public class Approval implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "approvalid", type = IdType.AUTO)
    private Integer approvalid;

    private Integer farmerid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime provincetime;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime citytime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime countytime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime towntime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime villagetime;

    public Integer getApprovalid() {
        return approvalid;
    }

    public void setApprovalid(Integer approvalid) {
        this.approvalid = approvalid;
    }
    public Integer getFarmerid() {
        return farmerid;
    }

    public void setFarmerid(Integer farmerid) {
        this.farmerid = farmerid;
    }
    public LocalDateTime getProvincetime() {
        return provincetime;
    }

    public void setProvincetime(LocalDateTime provincetime) {
        this.provincetime = provincetime;
    }
    public LocalDateTime getCitytime() {
        return citytime;
    }

    public void setCitytime(LocalDateTime citytime) {
        this.citytime = citytime;
    }
    public LocalDateTime getCountytime() {
        return countytime;
    }

    public void setCountytime(LocalDateTime countytime) {
        this.countytime = countytime;
    }
    public LocalDateTime getTowntime() {
        return towntime;
    }

    public void setTowntime(LocalDateTime towntime) {
        this.towntime = towntime;
    }
    public LocalDateTime getVillagetime() {
        return villagetime;
    }

    public void setVillagetime(LocalDateTime villagetime) {
        this.villagetime = villagetime;
    }

    @Override
    public String toString() {
        return "Approval{" +
            "approvalid=" + approvalid +
            ", farmerid=" + farmerid +
            ", provincetime=" + provincetime +
            ", citytime=" + citytime +
            ", countytime=" + countytime +
            ", towntime=" + towntime +
            ", villagetime=" + villagetime +
        "}";
    }
}
